-- GENERATED SPELL FOR [Proto-Drake Handler] --


function spell0_24082(pUnit, Event) --@Debilitating Strike,n/a--
pUnit:FullCastSpellOnTarget(38621,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24082', 582, 1)
end

function spell1_24082(pUnit, Event) --@Debilitating Strike,n/a--
pUnit:FullCastSpellOnTarget(59695,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24082', 559, 1)
end

function spell2_24082(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(54983,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24082', 2000, 1)
end

function spell3_24082(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(59696,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24082', 2000, 1)
end

function spell4_24082(pUnit, Event) --@Unholy Rage,n/a--
pUnit:FullCastSpellOnTarget(43664,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24082', 15000, 1)
end

function spell5_24082(pUnit, Event) --@Unholy Rage,n/a--
pUnit:FullCastSpellOnTarget(59694,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24082', 15000, 1)
end

function Sorts_24082(pUnit, Event)
local choix_sorts_24082 = math.random(0, 5)
if choix_sorts_24082 == 0 then
pUnit:RegisterEvent('spell0_24082', 1, 1)
end
if choix_sorts_24082 == 1 then
pUnit:RegisterEvent('spell1_24082', 1, 1)
end
if choix_sorts_24082 == 2 then
pUnit:RegisterEvent('spell2_24082', 1, 1)
end
if choix_sorts_24082 == 3 then
pUnit:RegisterEvent('spell3_24082', 1, 1)
end
if choix_sorts_24082 == 4 then
pUnit:RegisterEvent('spell4_24082', 1, 1)
end
if choix_sorts_24082 == 5 then
pUnit:RegisterEvent('spell5_24082', 1, 1)
end
end

function mob24082_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24082', math.random(1500, 3000), 1)
end

function mob24082_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24082_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24082_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24082, 1, 'mob24082_Action')
RegisterUnitEvent(24082, 2, 'mob24082_Leave')
RegisterUnitEvent(24082, 3, 'mob24082_Kill')
RegisterUnitEvent(24082, 4, 'mob24082_Die')
